﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using IOBusiness;
using IOEntity;
namespace Indochinaodyssey.Admin
{
    public partial class CateNews : System.Web.UI.Page
    {
        clsBSCateNew obj = new clsBSCateNew();
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btnSave_Click(object sender, EventArgs e)
        {
            try
            {
                clsCateNew cate = new clsCateNew();
                cate.TieuDe = this.TextBox1.Text;
                obj.Insert(cate);
                this.TextBox1.Text = "";
                this.Page.ClientScript.RegisterStartupScript(Page.GetType(), "show", "<script type='text/javascript'>alert('Thêm mới thành công')</script>");
                this.odsCateNews.DataBind();
                this.GridView1.DataBind();
            }
            catch (Exception)
            {
                
                throw;
            }
        }
    }
}